package com.platform.common.core.domain.entity;

import com.platform.common.core.annotation.Excel;
import com.platform.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;

/**
 * 货物类型对象 dic_cargotype
 *
 * @author xuefk
 * @date 2023-04-04
 */
public class DicCargotype extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 类型编码 */
    @Excel(name = "类型编码")
    @NotNull(message = "类型编码不能为空")
    private String typeCode;

    /** 名称 */
    @Excel(name = "名称")
    @NotNull(message = "名称不能为空")
    private String name;

    /** 描述 */
    @Excel(name = "描述")
    @NotNull(message = "描述不能为空")
    private String description;

    /** 是否适用国内   0 是   1 否 */
    @Excel(name = "是否适用国内   0 是   1 否")
    private String fitdom;

    /** 是否适用国际   0 是   1 否 */
    @Excel(name = "是否适用国际   0 是   1 否")
    private String fitint;

    /** 所属机场 */
    @Excel(name = "所属机场")
    @NotNull(message = "所属机场不能为空")
    private String airportCode;

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getAirportCode() {
        return airportCode;
    }

    public void setAirportCode(String airportCode) {
        this.airportCode = airportCode;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setFitdom(String fitdom)
    {
        this.fitdom = fitdom;
    }

    public String getFitdom()
    {
        return fitdom;
    }
    public void setFitint(String fitint)
    {
        this.fitint = fitint;
    }

    public String getFitint()
    {
        return fitint;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typecode", getTypeCode())
            .append("name", getName())
            .append("description", getDescription())
            .append("fitdom", getFitdom())
            .append("fitint", getFitint())
            .append("airportcode", getAirportCode())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
